Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / CanSort Method / CanSort<T>(IDataCollection<T>,SortDescription[]) Method
The data collection.
The sort descriptions that determine how the data would be sort.

In This Topic
    CanSort<T>(IDataCollection<T>,SortDescription[]) Method
    In This Topic
    Returns true if the data collection supports sorting.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CanSort(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal ParamArray sortDescriptions() As SortDescription _
    ) As Boolean
    public static bool CanSort<T>( 
       IDataCollection<T> dataCollection,
       params SortDescription[] sortDescriptions
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    sortDescriptions
    The sort descriptions that determine how the data would be sort.

    Type Parameters

    T
    See Also